//
//  TFUserDefault.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/2.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "TFUserDefault.h"


@implementation TFUserDefault

+ (void)setValue:(id)value forKey:(nonnull NSString *)key{
    
    [kUserDefaults setValue:value forKey:key];
    [kUserDefaults synchronize];
}

+ (id)valueForKey:(nonnull NSString *)key{
    
    return [kUserDefaults objectForKey:key];
}


+ (void)removeAll {
    [kUserDefaults removeObjectForKey:@"token"];
    [kUserDefaults removeObjectForKey:@"QNToken"];
    [kUserDefaults removeObjectForKey:@"RCToken"];
    [kUserDefaults removeObjectForKey:@"identity"];
    [kUserDefaults removeObjectForKey:@"userInfo"];
}

@end
